﻿using ORM.Applicaiton;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Test.Modal;

namespace Test
{
    public class TestDB
    {
        public static void Execute()
        {
            string ExceptionSTr = string.Empty;
            DBUtil dbutil = new DBUtil();
            bool issuccess = dbutil.ExecuteTransition_SDB(delegate()
            {
                User user = new User();
                user.UserGuid = "111";
                user.Name = "222";
                user.LoginName = "333";
                user.PassWord = "444";
                user.Age = 26;
                user.AddDate = DateTime.Now;
                dbutil.Insert(user);
                throw new Exception("111");
                dbutil.ExecuteSQL("update User set Age=99");

            }, out ExceptionSTr);
        }
    }
}
